﻿@{
	var prifix = "Ac_RDatabase_Tables_";
}
<div id="@(prifix)splitter" class="mini-splitter" vertical="true" style="width: 100%; height: 100%;">
	<div size="250" showcollapsebutton="true">
		<div class="mini-toolbar" style="border-left: 0; border-right: 0; border-top: 0px; padding: 2px;">
			<div style="float: left">
				@{Html.RenderPartial("Partials/UiViewButtons");}
			</div>
			<div style="float: right">
			</div>
			<div style="clear: both;">
			</div>
		</div>
		<!--撑满页面-->
		<div class="mini-fit">
			<div id="@(prifix)datagrid1" class="mini-datagrid" style="width:100%;height:100%;" allowAlternating="true" 
				url="@Url.Action("GetPlistTables")" idfield="Id" multiselect="false" 
				sizeList="[5,10,20,50]" pagesize="20" showFilterRow="true">
				<div property="columns">
					<div type="indexcolumn"></div>
					<div type="checkcolumn"></div>
					<div name="action" width="70" headeralign="center" align="center" cellstyle="padding:0;">
						<a id="@(prifix)btnSearchClear" property="filter" class="mini-button" style="float: right;">条件清空</a>
					</div>
					<div field="Id" width="120" headeralign="center" allowsort="true">
						Id
					</div>
					<div field="SchemaName" width="80" headeralign="center" allowsort="true">
						SchemaName
						<input id="@(prifix)SchemaNameFilter" name="SchemaName" property="filter" class="mini-textbox" style="width: 100%;" />
					</div>
					<div field="Name" width="160" headeralign="center" allowsort="true">
						Name
						<input id="@(prifix)NameFilter" name="Name" property="filter" class="mini-textbox" style="width: 100%;" />
					</div>
					<div field="Description" width="300" headeralign="center" allowsort="true">
						Description
						<input id="@(prifix)DescriptionFilter" name="Description" property="filter" class="mini-textbox" style="width: 100%;" />
					</div>
				</div>
			</div>
		</div>
	</div>
	<div showcollapsebutton="true">
		<div id="@(prifix)tabs1" class="mini-tabs" style="width: 100%; height: 100%;display:none;"
			activeindex="0" bodystyle="padding:0;border:0;">
			<div name="columnTab" bodyCls="inner" title="表列" iconStyle="">
			</div>
		</div>
	</div>
</div>
<div id="@(prifix)TableEdit_win1" class="mini-window" title="" style="width: 480px; height: 200px;"
	showmaxbutton="true" showfooter="true" showtoolbar="true"
	showmodal="true" allowresize="true" allowdrag="true">
	@{ Html.RenderPartial("Partials/EditBar", prifix + "TableEdit_"); }
	@{ Html.RenderPartial("Partials/TableEdit", prifix + "TableEdit_"); }
</div>
<script type="text/javascript" src="@Url.Content("~/Scripts/Areas/Ac/RDatabase/Tables.cshtml.js")"></script>
@if (Request.IsAjaxRequest()) {
	<script src="@Url.Content("~/Scripts/tooltipBoot.js")"></script>
}